package com.yuwenxin.core;

import java.util.List;

public interface BaseDao {
	int insert(Object object) throws Exception;

	/**
	 * 根据传入的对象，获取updateSql语句不同。
	 *
	 * @param object 输入一个object，然后转化为所需要的实体类bean
	 * @return  返回值为修改表的列数
	 * @throws Exception 抛出异常
	 */
	int update(Object object) throws Exception;  // 更新操作参数变量太复杂暂时延迟实现
	int delete(int id) throws Exception;
	List fuzzyFind(String name) throws Exception;
	Object findByName(String name) throws Exception;
	List findAll() throws Exception;
	Object find(int id) throws Exception;
	List findByCondition(BaseQueryModel queryModel) throws Exception;
}
 